package com.qidianit.mes.pro.service;

import com.github.pagehelper.PageInfo;
import com.qidianit.mes.pojo.Result;
import com.qidianit.mes.pojo.qc.CommonDefect;

/**
 * @Author: YKYB
 * @Date: 2025/9/21 15:44
 * @Description:
 */
public interface CommonDefectService {
    /**
     * 多条件查询
     *
     * @param commonDefect
     * @param pageNum
     * @param size
     * @return
     */
    Result<PageInfo<CommonDefect>> selectList(CommonDefect commonDefect, int pageNum, int size);

    /**
     *
     *
     * @param commonDefect
     * @return
     */
    Result save(CommonDefect commonDefect);

    Result updateById(CommonDefect commonDefect);

    Result deleteById(Long id);

    Result batchDelete(Long[] ids);

    Result selectById(Long id);
}
